﻿using System;
using System.Collections.Generic;

namespace DNX.IoCnoC
{
    public class ManualRegistration
    {
        private readonly List<Type> implementations = new List<Type>();

        public Type[] Implementations()
        {
            return implementations.ToArray();
        }

        public void Add(Type type)
        {
            if (!implementations.Contains(type))
                implementations.Add(type);
        }
    }
}